<!doctype html>
<html lang="en">
  <head>
    <title>Demo</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <script type="text/javascript" src="uxperf_debug.js"></script>
    <script type="text/javascript">
      uxperf.init({
        'sensors': [
          {
            'type': 'navigation_performance'
          }
        ],
        'target': {
          'type' : 'remote',
          'url' : 'http://localhost:8081/save/',
          'key' : '21:38_72h3n*%xh218wdxuw+xhd8uxh82husdx#$hn8uhdxn21'
        }
      });
      function load() {
        var k = 0;
        for (var i=1; i<99999; i++) {
          k = 9*3/2 + k;
        }
      }
    </script>
  </head>
  <body onload="load()">
    <h1>Demo</h1>
    <p>Refresh page more than 10 times and wait for 15 seconds, if everything is OK with your setup you should see sending of data in your server logs or in Developer Tools in your Web Browser</p>
    <form action="?" method="post">
      <input type="hidden" id="data" name="data" value=""/>
      <input type="submit" value="Refresh" /><br />
    </form>
    <br />
    <hr />    
  </body>
</html>